/*
 * Project: com.mmall.common.spring.config
 *
 * File Created at 2019-10-20
 *
 * Copyright 2019 CMCC Corporation Limited.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * ZYHY Company. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license.
 */
package com.mmall.common.spring.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @author jianghucoding
 * @date 2019-10-20
 */
@Component
@PropertySource(value = "classpath:config.properties")
@Getter
public class PropertiesConfig {

    @Value("${messages.basename}")
    private String messageBasename;

    @Value("${messages.encoding}")
    private String messageEncoding;

    @Value("${token.valid.period.hour}")
    private Integer tokenValidPeriodHour;

    @Value("${token.secret}")
    private String tokenSecret;
}
